package cn.hl.hm.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import cn.hl.hm.entity.OrderRules;

public interface OrderRulesMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(OrderRules record);

    int insertSelective(OrderRules record);

    OrderRules selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrderRules record);

    int updateByPrimaryKey(OrderRules record);
    
    /**
     * 更新规则
     * @param pwdstr
     * @param useraccount
     * @return
     */
    @Update("update order_rules set effective=0 where role_id = #{role_id}")
    public int updateTOrderRulesByRole(@Param("role_id") String role_id);
    
    public OrderRules selectOrderRules( );

}